package com.zxx.pattern.proxyPattern.daili.statics;

import com.zxx.pattern.proxyPattern.daili.ChanelFactory;

/**
 * 需求者，他需要去购买香水，
 *
 * @author zxx on 2020/9/9
 */
public class XiaoMing {

    public static void main(String[] args) {
        ChanelFactory factory = new ChanelFactory();
        XiaoHongSellProxy proxy = new XiaoHongSellProxy(factory);

        //这个不是代理****
        //factory.sellPerfume(1888.00);
        proxy.sellPerfume(1999.00);
    }

}
